function fieldList(array: Array[], field: string) {
  const fields = [];
  array.forEach((item) => {
    fields.push(item[field]);
  });
  return fields;
}

export default {
  fieldList,
};
